<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <ul>
        <li>1</li>
        <li>2</li>
        <li>3</li>
    </ul>
</body>
    <script>
        function test(){
            console.log(arguments);
            console.log(Array.from(arguments));
        }
        test(1,2,3,4)

        // Array.of 用来替换es5的Array方法通过值来创建数组
        console.log(Array.of(1,2,3));


        //fill函数
        let arr = Array.of(1,2,3,4);
        console.log(arr.fill(0,1,2));
    </script>
</html>